/**
 * 
 */
package com.teamall.web.sys.service;

import java.util.List;

import com.teamall.core.common.Page;
import com.teamall.framework.exception.BaseAppException;
import com.teamall.web.sys.db.po.DataDictPO;

/**
 * <Description> <br>
 * 
 * @author codeCreater<br>
 * @version 1.0<br>
 * @taskId <br>
 * @CreateDate 2014年11月11日 <br>
 * @since V1.0<br>
 * @see com.teamall.web.sys.service <br>
 */

public interface IDataDictService {

    DataDictPO selectByPrimaryKey(Integer key) throws BaseAppException;

    List<DataDictPO> selectByArg(DataDictPO record) throws BaseAppException;

    Page<DataDictPO> selectByArgAndPage(DataDictPO record, Page<DataDictPO> resultPage)
            throws BaseAppException;

    int add(DataDictPO record) throws BaseAppException;

    int update(DataDictPO record) throws BaseAppException;

    int delete(DataDictPO record) throws BaseAppException;

    /**
     * 返回所有的记录
     * @return
     * @throws BaseAppException
     */
    List<DataDictPO> qryAll() throws BaseAppException;
}
